<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>导航栏</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css">
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function() {
		$(".sidebar h2:first").addClass("active");
		$(".sidebar ul:not(:first)").hide();
		$(".sidebar h2").click(function() {
			$(this).next("ul").slideToggle().siblings("ul").slideUp();
			$(this).toggleClass('active').siblings("h2").removeClass("active");
		});
	});
</script>
</head>
<body>
	<div class="sidebar" id="sidebar" >
		
		<h2 >课程预约管理</h2>	
		<ul>
			<c:if test="${teacher.permission == 0}">
			<li><a href="jsp/order/startdate.jsp" target="content">设置开学时间</a></li>
			</c:if>
			<li><a href="jsp/order/ordersearch.jsp" class="selected" target="content">查询预约</a></li>
			<li><a href="jsp/order/order.jsp" target="content">预约课程</a></li>
			<li><a href="jsp/order/pickorder.jsp" target="content">批量预约</a></li>
			<li><a href="jsp/order/deleteorder.jsp" target="content">删除预约</a></li>
			<li><a href="jsp/order/expexcel.jsp" target="content">导出课程</a></li>
		</ul>
		<h2>实验室管理</h2>
		<ul>
			<li><a href="laball.action" target="content">实验室状态</a></li>
			<li><a href="jsp/lab/labsearch.jsp" target="content">查询实验室</a></li>
			<c:if test="${teacher.permission == 0}">
			<li><a href="jsp/lab/createlab.jsp" target="content">创建实验室</a></li>
			<li><a href="jsp/lab/deletelab.jsp" target="content">删除实验室</a></li>
			</c:if>
		</ul>
		
		<h2>用户管理</h2>
		<ul>
			<li><a href="teacherinfo.action" target="content">查询用户</a></li>
			<c:if test="${teacher.permission == 0}">
			<li><a href="jsp/user/add.jsp" target="content">创建用户</a></li>
			</c:if>
		</ul>
		
		<c:if test="${teacher.permission == 0}">
		<h2>注册码管理</h2>
		<ul>
			<li><a href="findCode.action" target="content">查询注册码</a></li>
			<li><a href="jsp/code/keygen.jsp" target="content">批量生成注册码</a></li>
			<li><a href="jsp/code/clearAll.jsp" target="content">清空全部注册码</a></li>
		</ul>
		</c:if>
	<div class="clear"></div>
	</div>
</body>
</html>
